package com.fowo.api.model.purchase.order.productlog;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 采购订单产品日志 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class PurchaseOrderProductlogImportPo {

  /** 所属采购订单 */
  @ExcelProperty("所属采购订单")
  private String parentPurchaseOrderPurchaseOrderCode;

  @ExcelIgnore
  @Schema(title = "所属采购订单")
  private String parentPurchaseOrder;

  /** 日期 */
  @ExcelProperty("日期")
  @DateString(message = "日期不是有效的日期格式")
  private String logdate;

  /** 内容 */
  @ExcelProperty("内容")
  @Size(max = 50, message = "内容长度不能超过50")
  private String content;
}
